package eu.testing.system.models;

import java.util.List;

import eu.testing.system.models.Variant;

public class Question {
	private int testId;
	private int questionId;
	private String questionValue;
	private List<Variant> variants;

	public Question() {
		super();

	}

	public Question(int testId, int questionId, String questionValue,
			List<Variant> variants) {
		super();
		this.testId = testId;
		this.questionId = questionId;
		this.questionValue = questionValue;
		this.variants = variants;
	}

	public int getTestId() {
		return testId;
	}

	public void setTestId(int testId) {
		this.testId = testId;
	}

	public int getQuestionId() {
		return questionId;
	}

	public void setQuestionId(int questionId) {
		this.questionId = questionId;
	}

	public String getQuestionValue() {
		return questionValue;
	}

	public void setQuestionValue(String questionValue) {
		this.questionValue = questionValue;
	}

	public List<Variant> getVariants() {
		return variants;
	}

	public void setVariants(List<Variant> variants) {
		this.variants = variants;
	}

	/*
	 * public void toString(){
	 * System.out.println("Test ID: "+this.testId+", question: "+
	 * this.questionValue+", variants: "+this.variants.size()); }
	 */

	@Override
	public String toString() {
		StringBuilder result = new StringBuilder();
		String NEW_LINE = System.getProperty("line.separator");
		result.append(this.getClass().getName() + " Object { " + NEW_LINE);
		result.append(" TEST_ID: " + this.testId + NEW_LINE);
		result.append(" QUESTION_ID: " + this.questionId + NEW_LINE);
		result.append(" QUESTION_VALUE: " + this.questionValue + NEW_LINE);
		result.append(" VARIANTS: " + this.variants.size() + NEW_LINE);
		result.append("}");

		return result.toString();
	}



}
